package com.ttj.domain.oracle.gen;

import java.util.ArrayList;
import java.util.List;

public class AppUpdateCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer mysqlOffset;

    protected Integer mysqlLength;

    public AppUpdateCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlOffset(Integer mysqlOffset) {
        this.mysqlOffset=mysqlOffset;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlOffset() {
        return mysqlOffset;
    }

    /**
     * @param mysqlOffset 
	 *            指定返回记录行的偏移量<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public void setMysqlLength(Integer mysqlLength) {
        this.mysqlLength=mysqlLength;
    }

    /**
     * @param mysqlLength 
	 *            指定返回记录行的最大数目<br>
	 *            mysqlOffset= 5,mysqlLength=10;  // 检索记录行 6-15
     */
    public Integer getMysqlLength() {
        return mysqlLength;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAndroidVersionNumIsNull() {
            addCriterion("ANDROID_VERSION_NUM is null");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumIsNotNull() {
            addCriterion("ANDROID_VERSION_NUM is not null");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumEqualTo(String value) {
            addCriterion("ANDROID_VERSION_NUM =", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumNotEqualTo(String value) {
            addCriterion("ANDROID_VERSION_NUM <>", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumGreaterThan(String value) {
            addCriterion("ANDROID_VERSION_NUM >", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumGreaterThanOrEqualTo(String value) {
            addCriterion("ANDROID_VERSION_NUM >=", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumLessThan(String value) {
            addCriterion("ANDROID_VERSION_NUM <", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumLessThanOrEqualTo(String value) {
            addCriterion("ANDROID_VERSION_NUM <=", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumLike(String value) {
            addCriterion("ANDROID_VERSION_NUM like", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumNotLike(String value) {
            addCriterion("ANDROID_VERSION_NUM not like", value, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumIn(List<String> values) {
            addCriterion("ANDROID_VERSION_NUM in", values, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumNotIn(List<String> values) {
            addCriterion("ANDROID_VERSION_NUM not in", values, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumBetween(String value1, String value2) {
            addCriterion("ANDROID_VERSION_NUM between", value1, value2, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidVersionNumNotBetween(String value1, String value2) {
            addCriterion("ANDROID_VERSION_NUM not between", value1, value2, "androidVersionNum");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlIsNull() {
            addCriterion("ANDROID_UP_URL is null");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlIsNotNull() {
            addCriterion("ANDROID_UP_URL is not null");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlEqualTo(String value) {
            addCriterion("ANDROID_UP_URL =", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlNotEqualTo(String value) {
            addCriterion("ANDROID_UP_URL <>", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlGreaterThan(String value) {
            addCriterion("ANDROID_UP_URL >", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlGreaterThanOrEqualTo(String value) {
            addCriterion("ANDROID_UP_URL >=", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlLessThan(String value) {
            addCriterion("ANDROID_UP_URL <", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlLessThanOrEqualTo(String value) {
            addCriterion("ANDROID_UP_URL <=", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlLike(String value) {
            addCriterion("ANDROID_UP_URL like", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlNotLike(String value) {
            addCriterion("ANDROID_UP_URL not like", value, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlIn(List<String> values) {
            addCriterion("ANDROID_UP_URL in", values, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlNotIn(List<String> values) {
            addCriterion("ANDROID_UP_URL not in", values, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlBetween(String value1, String value2) {
            addCriterion("ANDROID_UP_URL between", value1, value2, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidUpUrlNotBetween(String value1, String value2) {
            addCriterion("ANDROID_UP_URL not between", value1, value2, "androidUpUrl");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateIsNull() {
            addCriterion("ANDROID_IS_FORCE_UPDATE is null");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateIsNotNull() {
            addCriterion("ANDROID_IS_FORCE_UPDATE is not null");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateEqualTo(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE =", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateNotEqualTo(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE <>", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateGreaterThan(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE >", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateGreaterThanOrEqualTo(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE >=", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateLessThan(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE <", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateLessThanOrEqualTo(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE <=", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateLike(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE like", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateNotLike(String value) {
            addCriterion("ANDROID_IS_FORCE_UPDATE not like", value, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateIn(List<String> values) {
            addCriterion("ANDROID_IS_FORCE_UPDATE in", values, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateNotIn(List<String> values) {
            addCriterion("ANDROID_IS_FORCE_UPDATE not in", values, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateBetween(String value1, String value2) {
            addCriterion("ANDROID_IS_FORCE_UPDATE between", value1, value2, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidIsForceUpdateNotBetween(String value1, String value2) {
            addCriterion("ANDROID_IS_FORCE_UPDATE not between", value1, value2, "androidIsForceUpdate");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescIsNull() {
            addCriterion("ANDROID_UP_DESC is null");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescIsNotNull() {
            addCriterion("ANDROID_UP_DESC is not null");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescEqualTo(String value) {
            addCriterion("ANDROID_UP_DESC =", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescNotEqualTo(String value) {
            addCriterion("ANDROID_UP_DESC <>", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescGreaterThan(String value) {
            addCriterion("ANDROID_UP_DESC >", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescGreaterThanOrEqualTo(String value) {
            addCriterion("ANDROID_UP_DESC >=", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescLessThan(String value) {
            addCriterion("ANDROID_UP_DESC <", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescLessThanOrEqualTo(String value) {
            addCriterion("ANDROID_UP_DESC <=", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescLike(String value) {
            addCriterion("ANDROID_UP_DESC like", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescNotLike(String value) {
            addCriterion("ANDROID_UP_DESC not like", value, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescIn(List<String> values) {
            addCriterion("ANDROID_UP_DESC in", values, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescNotIn(List<String> values) {
            addCriterion("ANDROID_UP_DESC not in", values, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescBetween(String value1, String value2) {
            addCriterion("ANDROID_UP_DESC between", value1, value2, "androidUpDesc");
            return (Criteria) this;
        }

        public Criteria andAndroidUpDescNotBetween(String value1, String value2) {
            addCriterion("ANDROID_UP_DESC not between", value1, value2, "androidUpDesc");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table APP_UPDATE
     *
     * @mbg.generated do_not_delete_during_merge Wed Jul 12 08:41:20 CST 2017
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}